package io.renren.modules.sys.service.impl;

import io.renren.entity.FileManagerEntity;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;
import com.baomidou.mybatisplus.mapper.EntityWrapper;
import com.baomidou.mybatisplus.plugins.Page;
import com.baomidou.mybatisplus.service.impl.ServiceImpl;
import io.renren.common.utils.PageUtils;
import io.renren.common.utils.Query;

import io.renren.modules.sys.dao.ProductTypeDao;
import io.renren.entity.ProductTypeEntity;
import io.renren.modules.sys.service.ProductTypeService;


@Service("productTypeService")
public class ProductTypeServiceImpl extends ServiceImpl<ProductTypeDao, ProductTypeEntity> implements ProductTypeService {

    @Override
    public PageUtils queryPage(Map<String, Object> params) {
        Page<ProductTypeEntity> page = this.selectPage(
                new Query<ProductTypeEntity>(params).getPage(),
                new EntityWrapper<ProductTypeEntity>()
        );

        return new PageUtils(page);
    }

    @Override
    public List<ProductTypeEntity> queryList(Map<String, Object> params) {
        return super.selectList(new EntityWrapper<ProductTypeEntity>());

    };

}
